#include <iostream>

using namespace std;

int fun(int *k);

int main(void) {
  int i = 10, j = 10, sum1, sum2;
  sum1 = (i / 2) + fun (&i);
  sum2 = fun(&j) + (j / 2);
  cout << "sum1:" << sum1 << endl;
  cout << "sum2:" << sum2 << endl;
  return 0;
}

int fun(int* k) {
  *k += 4;
  return 3 * (*k) - 1;
}
